package com.StarStudio.Service;

import com.ruoyi.common.core.Entity.GoodsStock;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;


import java.util.List;

public interface GoodsStockService {

    public List<GoodsStock> findGoodsStockList(GoodsStock goodsStock);
    public void addGoodsStock(GoodsStock goodsStock);

    public long findAllRecordNumber();

    List<Long> findUnsoldItemIdsByGoodsId(long id);

    void realDelete(long id);

    List<Long> findSoldItemIdsByGoodsId(long id);

    void updateDelFlag(long id);

    List<Long> findGoodsStockIds(long goodsId,long storeId);

    List<GoodsStock> findUnsoldItems(long goodsId,boolean flag);

    void updateGoodsStock(GoodsStock goodsStock);

    List<GoodsStock> findSoldItems(long goodsId,boolean flag);

    List<GoodsStock> findByOrder_id(long orderId);
}
